package com.exam.service.impls;

import com.exam.domain.Exampaper;
import com.exam.mapper.ExampaperMapper;
import com.exam.service.interfaces.ExampaperService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * Created by jly on 2017/3/3.
 */
@Service("exampaperService")
public class ExampaperServiceImpl implements ExampaperService {
    @Resource
    private ExampaperMapper exampaperMapper;

    /**
     * 保存文件路径和名称到数据库
     *
     * @since 2017-3-3
     * @author jly
     * */
    @Override
    public boolean saveFilePath(String filename, String savePath) {
        return exampaperMapper.saveFilePath(filename,savePath);
    }
    /**
     * 查询下载文件列表
     *
     * @since 2017-3-3
     * @author jly
     * */
    @Override
    public List<Exampaper> fileInfo() {
        return exampaperMapper.fileInfo();
    }
}
